package net.sevear.chaos.vo
{
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	import flash.net.URLLoader;

	public class DoubanAlbumInfo
	{
		public static const NEW_TRACK_UPDATED:String = "New track info has updated";
		public static const ALL_TRACKS_UPDATED:String = "All tracks info has updated";
		
		public var id:int;
		public var name:String;
		public var publishTime:String;
		
		public var listenStartURL:String = "";
		
		public var tracksIds:Array = [];
		public var tracks:Array = [];
		
		//http://douban.fm/j/mine/playlist?type=n&h=&channel=0&context=channel:0|subject_id:3837067&from=mainsite&r=f2cde1e171
		private var _albumLoader:URLLoader;
		private function loadAlbumTracks():void{
			initAlbumLoader();
		}
		
		private function initAlbumLoader():void{
			if(_albumLoader ==null){
				_albumLoader = new URLLoader();
				_albumLoader.addEventListener(Event.COMPLETE,onLoadAblumuComplete);
				_albumLoader.addEventListener(IOErrorEvent,onLoadAlbumIOErr);
			}
		}
		
		private function onLoadAblumuComplete(e:Event):void{
			
		}
		
		private function onLoadAlbumIOErr(e:IOErrorEvent):void{
			
		}
	}
}